package io.xxx.walle.task;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDateTime;
import java.util.List;

public interface TaskRepository extends JpaRepository<Task, Long> {

    List<Task> findAllByStartTimeGreaterThanEqual(LocalDateTime startTime);

    Page<Task> findAllByNameLike(Pageable pageable, String name);
}
